package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author: John
 * @Date 2019/7/20 17:46
 */
@RestController
@RequestMapping("/shiro")
public class ShiroController {


    @GetMapping("/403")
    public ModelAndView noPermisstion() {
        return new ModelAndView("/shiro/403");
    }

    @GetMapping("/index")
    public ModelAndView index() {
        return new ModelAndView("/shiro/index");
    }

    @GetMapping("/userInfo")
    public ModelAndView userInfo() {
        return new ModelAndView("/shiro/userInfo");
    }

    @GetMapping("/userInfoAdd")
    public ModelAndView userInfoAdd() {
        return new ModelAndView("/shiro/userInfoAdd");
    }

    @GetMapping("/userInfoDel")
    public ModelAndView userInfoDel() {
        return new ModelAndView("/shiro/userInfoDel");
    }
}
